#ifndef __U8G2_PAGE_MAIN_H__
#define __U8G2_PAGE_MAIN_H__
#include "u8g2.h"
#include "def.h"
typedef enum
{
    E_U8G2_CHARGE_STATUS_NOT_IN_CHARGE = 0,
    E_U8G2_CHARGE_STATUS_INCHARGE = 1,
    E_U8G2_CHARGE_STATUS_FULL = 2,
    E_U8G2_CHARGE_STATUS_HEAT = 3,
} U8g2ChargeStatus;
typedef struct
{
    U8g2ChargeStatus chargeStatus;
    float batteryVoltage;
    float batteryCurrent;
    unsigned long totalChargedmAH; // mAH,
    float batteryTemperature;
} U8g2PageMainParms;

BOOL u8g2PageMain(u8g2_t *u8g2, U8g2PageMainParms *parms);
#endif
